import request from '@/utils/request'

// 查询班级信息列表
export function classList(query) {
  return request({
    url: '/basic/class/list',
    method: 'get',
    params: query
  })
}
// 查询未分配班级信息列表
export function ubdClass(query) {
  return request({
    url: '/basic/class/ubdClass',
    method: 'get',
    params: query
  })
}
// 查询辅导员未分配的班级信息(无权限开放接口)
export function notPreUbdClass(query) {
  return request({
    url: '/basic/class/notPreUbdClass',
    method: 'get',
    params: query
  })
}
// 根据年级和专业查询班级下拉树
export function getClassSelect(query) {
  return request({
    url: '/basic/class/getClassSelect',
    method: 'get',
    params: query
  })
}
// 新增班级信息
export function addClass(data) {
  return request({
    url: '/basic/class',
    method: 'post',
    data: data
  })
}
// 修改班级信息
export function updataClass(params) {
  return request({
    url: '/basic/class',
    method: 'put',
    data: params
  })
}
// 删除班级信息
export function delClass(params) {
  return request({
    url: '/basic/class/' + params,
    method: 'delete',
  })
}
// 获取班级信息详细信息
export function classInfor(query) {
    return request({
      url: '/basic/class/' + query,
      method: 'get',
    })
  }
// 获取籍贯树结构
export function getProvinceTree() {
    return request({
      url: '/basic/nativeplace/nativeplaceTree',
      method: 'get',
    })
  }
// 获取家庭地址树形结构
export function addersTree() {
    return request({
      url: '/basic/nativeplace/addersTree',
      method: 'get',
    })
  }

// 查询学院专业树形结构
export function getSpecialityTree() {
    return request({
      url: '/basic/speciality/getSpecialityTree',
      method: 'get',
    })
  }



